<script setup>

const props = defineProps({
    size: {
        default: "base"
    },
    nom: {   
        default: "primary"
    }
});
</script>

<template>
<div>
    <button :class="[size,nom]" class="bt"><slot></slot></button>
</div>
</template>

<style lang="less" scoped>
.bt{
  text-align: center;
  border: none;
  cursor: pointer;
}
//size
.max{
    min-width: 100px;
    height: 40px;
    border-radius: 24px; 
    padding: 0 24px;
}

.base{
    min-width: 80px;
    height: 36px;
    border-radius: 24px;
    padding: 0 20px; 
}

.samll {
    min-width: 72px;
    height: 32px;
    border-radius: 24px;
    padding: 0 20px; 
}
.submit{
    width: 200px;
    height: 40px;
    border-radius: 24px; 
    padding: 0 24px;
}
//nom
.primary{
    background-color: @gray-1;
    color: @gray-10;
}

.secondary{
    background: none;
    color:@gray-1;
    border: 1px solid @gray-1;  
}
.cprimary{
    background-color: #409EFF;
    color:@gray-1;
    font-weight: 600;
}
.csecondary{
    background-color: @gray-10;
    color:@gray-1;
}
</style>
